import { AxiosPromise } from 'axios'
// @ts-ignore
import request from '/@/utils/request'

const prefix = '/api/dms/customerOrder/'
// 获取客户订单列表
export const customerOrderTrack: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}track`, { data })
// 获取客户订单详情 info
export const customerOrderInfo: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}info`, { data })
// 订单变更 updateStatus
export const customerUpdateStatus: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}updateStatus`, { data })
//承办接口  undertake
export const customerUndertake: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}undertake`, { data })
// 添加标识
export const customerUpdateProductCodeSign: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}updateProductCodeSign`, { data })
// 客户订单确认收货
export const customerReceipt: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}receipt`, { data })
//获取销售人员
export const customerOptions: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}options`, { data })
//客户订单审核撤销
export const customerCancelAudit: (data: object) => AxiosPromise = (data) =>
  request(`${prefix}cancelAudit`, { data })
